package com.tjec.common.enums;

/**
 * 自定义错误编码
 * liuxu
 * 2020-04-20
 */
public enum ErrCode {
    OK(0, "成功"),
    SYS_ACCOUNT_ERROR(100000, "用户账号错误！"),
    SYS_PASSWORD_ERROR(100001, "用户密码错误！"),
    SYS_PARAMETER_EMPTY(100002, "参数为空！"),
    SYS_PARAMETER_ERROR(100003, "参数错误！"),

    UNKNOW_ERROR(999999, "未知错误！");

    private final int errCode;
    private final String errMsg;

    private ErrCode(int errCode, String errMsg) {
        this.errCode = errCode;
        this.errMsg = errMsg;
    }

    public int getErrCode() {
        return this.errCode;
    }

    public String getErrMsg() {
        return this.errMsg;
    }
}
